<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?php echo html::specialchars($title) ?></title>

	<style type="text/css">
	html { background: #F9F1AE url(<?php echo url::base(FALSE) ?>images/header.png) 50% 0 no-repeat; }
	body { width: 800px; margin: 150px auto 2em; font-size: 76%; font-family: Arial, sans-serif; color: #273907; line-height: 1.5; text-align: center; }
	h1 { font-size: 3em; font-weight: normal; text-transform: uppercase; color: #fff; }
	a { color: inherit; }
	code { font-size: 1.3em; }
	ul { list-style: none; padding: 2em 0; }
	ul li { display: inline; padding-right: 1em; text-transform: uppercase; }
	ul li a { padding: 0.5em 1em; background: #D24F32; border: 1px solid #982A11; color: #fff; text-decoration: none; }
	ul li a:hover { background: #F9E642; }
	.box { padding: 2em; background: #F9E642; border: 1px solid #D24F32; }
	.copyright { font-size: 0.9em; text-transform: uppercase; color: #557d10; }
	.inputShow{background:none repeat scroll 0 0 #dcd7c4;border:1px solid #982A11;color:blue;text-decoration:none;}
	</style>
<link rel="stylesheet" href="<?php echo url::base(FALSE) ?>css/jquery/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="UTF-8" />
<link rel="stylesheet" href="<?php echo url::base(FALSE) ?>css/jquery/template.css" type="text/css" media="screen" title="no title" charset="UTF-8" />
<script src="<?php echo url::base(FALSE) ?>/js/jquery/jquery.js" type="text/javascript" ></script> 
<script type="text/javascript">
(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = {
			"required":{    
						"regex":"none",
							"alertText":"* ต้องกรอกข้อมูลช่องนี้",
							"alertTextCheckboxMultiple":"* กรุณาเลือก Option",
							"alertTextCheckboxe":"* กรุณาเลือก CheckBox"},
						"length":{
							"regex":"none",
							"alertText":"*Between ",
							"alertText2":" and ",
							"alertText3": " characters allowed"},
						"minCheckbox":{
							"regex":"none",
							"alertText":"* คุณเลือกเต็มจำนวนช่องแล้ว"},	
						"confirm":{
							"regex":"none",
							"alertText":"* ข้อมูลไม่เหมือนกัน"},		
						"telephone":{
							"regex":"/^[0-9\-\(\)\ ]+$/",
							"alertText":"* เบอร์โทรศัพท์ไม่ถูกต้อง"},	
						"email":{
							"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
							"alertText":"* อีเมล์ไม่ถูกต้อง"},	
						"date":{
                             "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                             "alertText":"* วันที่ ไม่ถูกต้อง, ต้องเป็นรูปแบบนี้เท่านั้ืน YYYY-MM-DD ,1985-10-28"},
						"onlyNumber":{
							"regex":"/^[0-9\ ]+$/",
							"alertText":"* ใส่ได้เฉพาะตัวเลขเท่านั้น"},	
						"noSpecialCaracters":{
							"regex":"/^[0-9a-zA-Zก-ฮะ-์]+$/",
							"alertText":"* ห้ามให้ อักขระ พิเศษ"},	
						"noSpecialCaractersUsername":{
							"regex":"/^[0-9a-zA-Z]+$/",
							"alertText":"* ใส่ได้เฉพาะ 0-9 และ a-z เท่านั้น"},	
						"onlyLetter":{
							"regex":"/^[a-zA-Zก-ฮะ-์\ \']+$/",
							"alertText":"* ใส่ได้เฉพาะตัวอักษรเท่านั้น"}
				}	
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});
</script>
<script src="<?php echo url::base(FALSE) ?>/js/jquery/jquery.validationEngine.js" type="text/javascript"></script> 
</head>
<body>

	<h1><?php echo html::specialchars($title) ?></h1>
	<?php echo $content ?>

	<p class="copyright">
		Rendered in {execution_time} seconds, using {memory_usage} of memory<br />
		Copyright ©2009–2010 Car2Club Team
	</p>

</body>
</html>